<?php
class Agitum_Orm_Privilege extends Agitum_Orm_Link
{
    protected function init()
    {
        parent::init();
        
        $this->name = 'privilege';
        $this->title = 'Привилегии';
        
        $this->schema['mask'] = Agitum_Orm_Attribute::factory(
            Agitum_Orm_Attirbute_Type::Integer, 
            array(
                'name' => 'mask',
                'title' => 'Маска прав доступа',
                'sortOrder' => '80'
            )
        );
        
        $this->schema['allowed'] = Agitum_Orm_Attribute::factory(
            Agitum_Orm_Attirbute_Type::Boolean, 
            array(
                'name' => 'allowed',
                'title' => 'Разрешено',
                'sortOrder' => '90'
            )
        );
        
    }
}